﻿using System.Configuration;
using NUnit.Framework;

namespace Cumulux.BootStrapper.Tests
{
    [TestFixture]
    public class SettingManagerTest
    {
        [Test]
        public void GetConfigurationSettingTest()
        {
            var expected = ConfigurationManager.AppSettings["temp"];
            var actual = SettingManager.GetConfigurationSetting("temp");
            
            Assert.AreEqual(expected, actual);
        }

        [Test]
        public void GetResourcePathTest()
        {
            var expected = ConfigurationManager.AppSettings["DefaultConnectionString"];
            var actual = SettingManager.GetResourcePath("DefaultConnectionString");

            Assert.AreEqual(expected, actual);
        }
    }
}
